<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="Expires" content="0">
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Cache-control" content="no-cache">
  <meta http-equiv="Cache" content="no-cache">
  <title>狮子老爸音频管理平台下载</title>
  <link href=./css/app.css rel=stylesheet>
</head>
<body>
<script type="application/javascript" src="./jquery-3.3.1/jquery-3.3.1.min.js"></script>

<a href="" download=下载文件.apk id=DownloadFile_a_id style="display: none;"></a>
<div class="body">
  <div class="logo">
    <div class="image">
      <img class="img" src="./images/logo.png">
    </div>
    <div class="title">狮子老爸音频管理平台</div>
  </div>

  <div class="btn-div">
    <div class="btn" onclick="window.open('http://cqjy.jnaw.top/cqjy/version/redirect')">
      <div class="logo">
        <img class="img" src="./images/android.png">
      </div>
      <div class="title">下载手机应用</div>
    </div>
    <!--<div class="btn" onclick="window.open('http://oa.jnaw.top/download/doc/app.pdf')">-->
    <!--<div class="logo">-->
    <!--<img class="img" src="./images/user-manual.png">-->
    <!--</div>-->
    <!--<div class="title">下载使用说明</div>-->
    <!--</div>-->
  </div>
</div>
</body>
</html>
<script type="application/javascript">

  $(function () {
    var clientWidth = document.documentElement.clientWidth;
    var clientHeight = document.documentElement.clientHeight;
    var logoHeight = clientHeight / 2;

    $(".body .logo .image").css('height', logoHeight * 0.7);
    $(".body .logo .title").css('height', logoHeight * 0.2);
  });

  function DownloadFile(url, name) {
    // 下载文件
    console.log('下载：', url, name);
    try {
      var DownloadFile_a_id = document.getElementById('DownloadFile_a_id');
      DownloadFile_a_id.href = url + "?a=" + Math.random();
      DownloadFile_a_id.download = name;
      DownloadFile_a_id.click();
    } catch (e) {
      console.log('下载失败');
    }
  }
</script>
